<%= form_for(@user,  :html => { :class => 'form-horizontal' }) do |f| %>
  <% if @user.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

      <ul>
      <% @user.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :username, class: "control-label"%>
    <div class="controls">
        <%= f.text_field :username, :disabled => disabled %>
    </div>
  </div> 

  <div class="control-group">
    <%= f.label :password, class: "control-label"%>
    <div class="controls">
        <%= f.text_field :password%>
    </div>
  </div> 

  <div class="control-group">
    <%= f.label :email, class: "control-label"%>
    <div class="controls">
        <%= f.text_field :email %>
    </div>
  </div> 

  <div class="form-actions">
    <%= f.submit nil, :class => "btn" %>
  </div>
<% end %>
